package com.huarui.saleReturn.dao.impl;

import java.util.List;
import java.util.Map;

import org.ewaf.framework.dao.impl.BaseDaoImpl;

import com.huarui.saleReturn.dao.ISaleReturnDao;
import com.huarui.saleReturn.model.SaleReturn;

public class SaleReturnDao extends BaseDaoImpl implements ISaleReturnDao {

	@Override
	public SaleReturn getSaleReturnById(Map<String, Object> map) {
		
		return (SaleReturn) getSqlMapClientTemplate().queryForObject(namespace+".getSaleReturnById", map);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<Map<String,Object>> getSaleReturnForMapByConditions(Map<String, Object> map) {
		
		return getSqlMapClientTemplate().queryForList(namespace+".getSaleReturnForMapByConditions", map);
	}

	@Override
	public Integer getSaleReturnCountByConditions(Map<String, Object> queryMap) {
		return (Integer) getSqlMapClientTemplate().queryForObject(namespace+".getSaleReturnCountByConditions", queryMap);
	
		
	}

}
